﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Workflow/MasterPage/Edit.Master"   Inherits="WorkFlow_WFDevDemo_WFWorkEdit" Codebehind="WFWorkEdit.aspx.cs" %>
<%@ Register Src="../Apply/WFButtons.ascx" TagName="WFButtons" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtCode.UniqueID%>:{required: true,maxlength: 36},
					<%= txtTitle.UniqueID%>:{required: true,maxlength: 200}				
                 },
                 messages:
                 {
					<%= txtCode.UniqueID%>:{required: "单据编码 请输入合适的值",maxlength: "单据编码 最多只能输入36个字符"},
					<%= txtTitle.UniqueID%>:{required: "主题 请输入合适的值",maxlength: "主题 最多只能输入200个字符"}				
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="t1">
    <thead>
        <th>
            示例单据信息维护
        </th>
    </thead>
</table>         
<table align="center"  width="100%"  border="0" cellpadding="1" cellspacing="0" class="tEdit">    
    <tr>		
		<td class="title1" width="100px">
            单据编码:</td>
		<td >
            <asp:textbox id="txtCode" MaxLength="36" CssClass="input2" Runat="server"  Width="96%"  ></asp:textbox></td>
		<td  class="title1" width="100px">
            流程状态:</td>
		<td >
            <asp:DropDownList ID="ddlWFState" runat="server" Enabled="false" CssClass="input2"  Width="98%" >
            </asp:DropDownList></td>
	</tr>
	<tr>		
		<td  class="title1">
            主题:</td>
        <td colspan="3">
            <asp:textbox id="txtTitle" MaxLength="50" Width="96%" Runat="server"   CssClass="input2" ></asp:textbox>
          </td>
	</tr>
	<tr>		
		<td  class="title1">
            制表人:</td>
		<td><asp:textbox id="txtCreator" MaxLength="50" Runat="server" ReadOnly="True"  Width="96%"   CssClass="input2" ></asp:textbox></td>
		<td  class="title1">制表日期:</td>
		<td><asp:textbox id="txtCreateTime" Runat="server" ReadOnly="True" CssClass="input2"  Width="96%" ></asp:textbox></td>
	</tr>
	<tr>		
		<td  class="title1">
            金额:</td>
		<td>
            <asp:DropDownList ID="ddlAmount" runat="server" CssClass="input2"  Width="98%" >
                <asp:ListItem>48000</asp:ListItem>
                <asp:ListItem>50000</asp:ListItem>
                <asp:ListItem>62000</asp:ListItem>
            </asp:DropDownList></td>
		<td  class="title1">类型:</td>
		<td>
            <asp:DropDownList ID="ddlType" runat="server" CssClass="input2"  Width="98%" >
                <asp:ListItem>A</asp:ListItem>
                <asp:ListItem>B</asp:ListItem>
                <asp:ListItem>C</asp:ListItem>
            </asp:DropDownList></td>
	</tr>
	<tr>		
		<td  class="title1">
            说明:</td>
		<td colspan="3">
            <asp:TextBox ID="txtDescription" runat="server" Rows="8" TextMode="MultiLine" Width="98%" CssClass="input2" ></asp:TextBox></td>
	</tr>
</table>
<table width="100%">
    <tr>
        <td align="center">
            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" />
            <uc1:WFButtons ID="WFButtons1" runat="server" />
        </td>
    </tr>
</table>

</asp:Content>
